<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="jt.classic.system.user.IUser"%>
<%@ page import="jt.classic.system.ISystem"%>
<%
   String context = jt.classic.system.ISystem.getContextPath();
   
   IUser user = ISystem.getSessionUser(request);
   
   response.setHeader("Pragma","No-cache");//HTTP 1.1 
   response.setHeader("Cache-Control","no-cache");//HTTP 1.0 
   response.setDateHeader("Expires",0);//防止被proxy
   String flumelabel =  user.igroup().iflumelabel("/");
   String newflumelabel = "";
   if(flumelabel != null){
	   int idx = flumelabel.indexOf("/");
	   newflumelabel = flumelabel.substring(idx+1);
   }else{
	   newflumelabel = flumelabel;
	   
   }
%>
<html>
<head>
<title>top page</title>
<jsp:include page="../system/head.jsp"></jsp:include>
<script language=JavaScript>
function logout(){
	if (confirm("您确定要退出系统吗？")){
	    top.location.href = "<%=context%>/system/logout.do";
	}
}

function handleMyPWD(){
    var url =  "<%=context%>/system/self.do?method=editmypwd";
    parent.document.frames['mainFrame'].handleURL('editmypwd',url,'密码管理');
}

function desktop(){
    var url =  "<%=context%>/system/blank.jsp";
    parent.document.frames['mainFrame'].handleURL(url,'系统桌面');
}
</script>
<script language=JavaScript1.2>
function showsubmenu(sid) {
	var whichEl = eval("submenu" + sid);
	var menuTitle = eval("menuTitle" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}
</script>
<meta http-equiv=Content-Type content=text/html;charset=UTF-8>
<SCRIPT src="js/Clock.js" type=text/javascript></SCRIPT>
<SCRIPT src="<%=context%>/system/user/js/editpwd.js" type=text/javascript></SCRIPT>
<script>
function showsubmenu(sid) {
	var whichEl = eval("submenu" + sid);
	var menuTitle = eval("menuTitle" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}
</script>
<style>
	#changePWD a:link {
    color:#fff;
    text-decoration:none;
    }
    #changePWD a:visited {
    color:#ff0000;
    text-decoration:none;
    }
    #changePWD a:hover {
    color:#fff;
    text-decoration:none;
    }
    #changePWD a:active {
    color:#fff;
    text-decoration:none;
    }
</style>
<base target="main">
<link href="images/skin.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<!--  <div class="logo_txt"><font style="font-size:25px;color:#ffffff;font-weight:bold;">朝阳区全模式社会服务系统</font>&nbsp;&nbsp;
<font style="font-size:20px;color:#ffffcc;">信访管理模块</font></div>-->
<table width="100%" height="80" border="0" cellpadding="0" cellspacing="0" class="admin_topbg">
  <tr>
    <td valign="middle" align="right" style="width:1024px;background:transparent url(images/banner.jpg);background-repeat:no-repeat;">
     <!-- <div class="admin_txt" style="position:absolute;right:0;top:50%;padding:5px;font-size: 14px;color:#fff;"> </div> -->
         
       <div class="admin_txt" style="padding:5px;font-size: 13px;color:#fff;align:left"> 
       <table  class="admin_txt" style="padding:5px;font-size: 13px;color:#fff;align:left" width="150" height="50" border="0" cellpadding="0" cellspacing="0">
  			<tr>
  				<td>用户: <%=user.iname() %>
  				</td>
  			</tr>
  			<tr>
  				<td>部门: <%=newflumelabel%>
  				</td>
  			</tr>
  			<tr>
  				<td  id="changePWD"><a href="javascript:void(0);"  target="_self" onClick="handleMyPWD();">修改口令</a>
  				</td>
  			</tr>
  		</table>
       	
         
       </div>
        
    </td>
    <td style="background:transparent url(images/bg.gif);background-repeat:repeat-x;">
        &nbsp;<a href="javascript:void(0);" target="_self" onClick="logout();"><img style="vertical-align:middle;" src="images/logout.png" alt="退出系统" width="25" height="25" border="0"></a>
    </td>
  </tr>
</table>
</body>
</html>
<SCRIPT type=text/javascript>
    //var clock = new Clock();
    //clock.display(document.getElementById("clock"));
</SCRIPT>